<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="DuracionProyecto.aspx.cs" Inherits="RendimientoDesarrollador" Title="Untitled Page" %>

<%@ Register Assembly="ZedGraph.Web" Namespace="ZedGraph.Web" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">

<div>
    <div style="width: 100%; height: auto">
        <h1>Duraci&oacute;n del Proyecto</h1>
    </div>
    <div style="width: 100%; height: auto">
        <h3>Datos del Proyecto</h3>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            Proyecto: <asp:DropDownList ID="cbProyectos" runat="server" AutoPostBack="True" OnSelectedIndexChanged="cbProyectos_SelectedIndexChanged">
            </asp:DropDownList>
        </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <br />
    <div style="width: 100%; height: auto">
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            Fecha Inicio: <asp:TextBox ID="tbInicio" width="100px" runat="server" Enabled="False"></asp:TextBox>
            Fecha Final: <asp:TextBox ID="tbFinal" width="100px" runat="server" Enabled="False"></asp:TextBox>
            Duraci&oacute;n: <asp:TextBox ID="tbDuracion" width="100px" runat="server" Enabled="False"></asp:TextBox>
        </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <br />
    <div style="width: 100%; height: auto">
        <h3>ECSs del Proyecto</h3>
        <div style="width: 100%; height: auto">
            <asp:UpdatePanel ID="UpdatePanel3" runat="server">
            <ContentTemplate>
                <asp:GridView ID="gvECSs" runat="server" AutoGenerateColumns="False">
                    <Columns>
                        <asp:BoundField HeaderText="ID" DataField="ID_ECS" />
                        <asp:BoundField HeaderText="Nombre ECS" DataField="Nombre" />
                        <asp:BoundField HeaderText="Duraci&#243;n Total" DataField="DuracionTotal" />
                        <asp:BoundField HeaderText="Porcentaje del Tiempo del Proyecto" DataField="Porcentaje" />
                    </Columns>
                </asp:GridView>
            </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </div>
    <div style="width: 100%; height: auto">
        <br />Duraci&oacute;n de cada ECS<br /><br />
        <asp:UpdatePanel id="updatePanelGrafico" runat="server">
        <contenttemplate>
<cc1:ZedGraphWeb id="graficoDuraciones" runat="server" OnRenderGraph="graficoDuraciones_RenderGraph">
<XAxis Cross="0" CrossAuto="True" AxisColor="Black" Title="" MinSpace="0" IsTicsBetweenLabels="True" IsZeroLine="False" IsVisible="True" Type="Linear" IsOmitMag="False" IsShowTitle="True" IsUseTenPower="False" IsPreventLabelOverlap="True">
<FontSpec Angle="0" Size="14" Family="Arial" FontColor="Black" StringAlignment="Center" IsBold="True" IsItalic="False" IsUnderline="False">
<Border Color="Black" IsVisible="False" Width="1" InflateFactor="0"></Border>

<Fill Color="White" ColorOpacity="100" IsVisible="True" RangeMax="0" RangeMin="0" Type="None" AlignH="Center" AlignV="Center" IsScaled="True"></Fill>
</FontSpec>

<MinorGrid Color="Black" IsVisible="False" DashOn="1" DashOff="5" PenWidth="1"></MinorGrid>

<MajorGrid Color="Black" IsVisible="False" DashOn="1" DashOff="5" PenWidth="1"></MajorGrid>

<MinorTic Color="Black" Size="5" IsOutside="True" IsInside="True" IsOpposite="True" PenWidth="1"></MinorTic>

<MajorTic Color="Black" Size="5" IsOutside="True" IsInside="True" IsOpposite="True" PenWidth="1"></MajorTic>

<Scale Min="0" Max="0" MajorStepAuto="True" MajorStep="1" MajorUnit="Day" MinorStepAuto="True" MinorStep="1" MinorUnit="Day" MinAuto="True" MaxAuto="True" MinGrace="0.1" MaxGrace="0.1" IsReverse="False" FormatAuto="True" Format="g" Align="Center" Mag="0" MagAuto="True">
<FontSpec Angle="0" Size="14" Family="Arial" FontColor="Black" StringAlignment="Center" IsBold="False" IsItalic="False" IsUnderline="False">
<Border Color="Black" IsVisible="False" Width="1" InflateFactor="0"></Border>

<Fill Color="White" ColorOpacity="100" IsVisible="True" RangeMax="0" RangeMin="0" Type="None" AlignH="Center" AlignV="Center" IsScaled="True"></Fill>
</FontSpec>
</Scale>
</XAxis>

<Y2Axis Cross="0" CrossAuto="True" AxisColor="Black" Title="" MinSpace="0" IsTicsBetweenLabels="True" IsZeroLine="True" IsVisible="False" Type="Linear" IsOmitMag="False" IsShowTitle="True" IsUseTenPower="False" IsPreventLabelOverlap="True">
<FontSpec Angle="0" Size="14" Family="Arial" FontColor="Black" StringAlignment="Center" IsBold="True" IsItalic="False" IsUnderline="False">
<Border Color="Black" IsVisible="False" Width="1" InflateFactor="0"></Border>

<Fill Color="White" ColorOpacity="100" IsVisible="True" RangeMax="0" RangeMin="0" Type="None" AlignH="Center" AlignV="Center" IsScaled="True"></Fill>
</FontSpec>

<MinorGrid Color="Black" IsVisible="False" DashOn="1" DashOff="5" PenWidth="1"></MinorGrid>

<MajorGrid Color="Black" IsVisible="False" DashOn="1" DashOff="5" PenWidth="1"></MajorGrid>

<MinorTic Color="Black" Size="5" IsOutside="True" IsInside="True" IsOpposite="True" PenWidth="1"></MinorTic>

<MajorTic Color="Black" Size="5" IsOutside="True" IsInside="True" IsOpposite="True" PenWidth="1"></MajorTic>

<Scale Min="0" Max="0" MajorStepAuto="True" MajorStep="1" MajorUnit="Day" MinorStepAuto="True" MinorStep="1" MinorUnit="Day" MinAuto="True" MaxAuto="True" MinGrace="0.1" MaxGrace="0.1" IsReverse="False" FormatAuto="True" Format="g" Align="Center" Mag="0" MagAuto="True">
<FontSpec Angle="-90" Size="14" Family="Arial" FontColor="Black" StringAlignment="Center" IsBold="False" IsItalic="False" IsUnderline="False">
<Border Color="Black" IsVisible="False" Width="1" InflateFactor="0"></Border>

<Fill Color="White" ColorOpacity="100" IsVisible="True" RangeMax="0" RangeMin="0" Type="None" AlignH="Center" AlignV="Center" IsScaled="True"></Fill>
</FontSpec>
</Scale>
</Y2Axis>

<FontSpec Angle="0" Size="16" Family="Arial" FontColor="Black" StringAlignment="Center" IsBold="True" IsItalic="False" IsUnderline="False">
<Border Color="Black" IsVisible="False" Width="1" InflateFactor="0"></Border>

<Fill Color="White" ColorOpacity="100" IsVisible="True" RangeMax="0" RangeMin="0" Type="None" AlignH="Center" AlignV="Center" IsScaled="True"></Fill>
</FontSpec>

<MasterPaneFill Color="White" ColorOpacity="100" IsVisible="True" RangeMax="0" RangeMin="0" Type="Solid" AlignH="Center" AlignV="Center" IsScaled="True"></MasterPaneFill>

<YAxis Cross="0" CrossAuto="True" AxisColor="Black" Title="" MinSpace="0" IsTicsBetweenLabels="True" IsZeroLine="True" IsVisible="True" Type="Linear" IsOmitMag="False" IsShowTitle="True" IsUseTenPower="False" IsPreventLabelOverlap="True">
<FontSpec Angle="-180" Size="14" Family="Arial" FontColor="Black" StringAlignment="Center" IsBold="True" IsItalic="False" IsUnderline="False">
<Border Color="Black" IsVisible="False" Width="1" InflateFactor="0"></Border>

<Fill Color="White" ColorOpacity="100" IsVisible="True" RangeMax="0" RangeMin="0" Type="None" AlignH="Center" AlignV="Center" IsScaled="True"></Fill>
</FontSpec>

<MinorGrid Color="Black" IsVisible="False" DashOn="1" DashOff="5" PenWidth="1"></MinorGrid>

<MajorGrid Color="Black" IsVisible="False" DashOn="1" DashOff="5" PenWidth="1"></MajorGrid>

<MinorTic Color="Black" Size="5" IsOutside="True" IsInside="True" IsOpposite="True" PenWidth="1"></MinorTic>

<MajorTic Color="Black" Size="5" IsOutside="True" IsInside="True" IsOpposite="True" PenWidth="1"></MajorTic>

<Scale Min="0" Max="0" MajorStepAuto="True" MajorStep="1" MajorUnit="Day" MinorStepAuto="True" MinorStep="1" MinorUnit="Day" MinAuto="True" MaxAuto="True" MinGrace="0.1" MaxGrace="0.1" IsReverse="False" FormatAuto="True" Format="g" Align="Center" Mag="0" MagAuto="True">
<FontSpec Angle="90" Size="14" Family="Arial" FontColor="Black" StringAlignment="Center" IsBold="False" IsItalic="False" IsUnderline="False">
<Border Color="Black" IsVisible="False" Width="1" InflateFactor="0"></Border>

<Fill Color="White" ColorOpacity="100" IsVisible="True" RangeMax="0" RangeMin="0" Type="None" AlignH="Center" AlignV="Center" IsScaled="True"></Fill>
</FontSpec>
</Scale>
</YAxis>

<Legend IsVisible="True" IsHStack="True" Position="Top" IsReverse="False">
<Location Height="0" Width="0" Y="0" X="0" AlignH="Left" AlignV="Center" CoordinateFrame="ChartFraction">
<TopLeft X="0" Y="0"></TopLeft>

<BottomRight X="0" Y="0"></BottomRight>
</Location>

<FontSpec Angle="0" Size="12" Family="Arial" FontColor="Black" StringAlignment="Center" IsBold="False" IsItalic="False" IsUnderline="False">
<Border Color="Black" IsVisible="False" Width="1" InflateFactor="0"></Border>

<Fill Color="White" ColorOpacity="100" IsVisible="True" RangeMax="0" RangeMin="0" Type="Solid" AlignH="Center" AlignV="Center" IsScaled="True"></Fill>
</FontSpec>

<Fill Color="White" ColorOpacity="100" IsVisible="True" RangeMax="0" RangeMin="0" Type="Brush" AlignH="Center" AlignV="Center" IsScaled="True"></Fill>

<Border Color="Black" IsVisible="True" Width="1" InflateFactor="0"></Border>
</Legend>

<PaneFill Color="White" ColorOpacity="100" IsVisible="True" RangeMax="0" RangeMin="0" Type="Solid" AlignH="Center" AlignV="Center" IsScaled="True"></PaneFill>

<ChartFill Color="White" ColorOpacity="100" IsVisible="True" RangeMax="0" RangeMin="0" Type="Brush" AlignH="Center" AlignV="Center" IsScaled="True"></ChartFill>

<ChartBorder Color="Black" IsVisible="True" Width="1" InflateFactor="0"></ChartBorder>

<MasterPaneBorder Color="Black" IsVisible="True" Width="1" InflateFactor="0"></MasterPaneBorder>

<Margins Left="10" Top="10" Right="10" Bottom="10"></Margins>

<PaneBorder Color="Black" IsVisible="True" Width="1" InflateFactor="0"></PaneBorder>
</cc1:ZedGraphWeb> 
</contenttemplate>
        </asp:UpdatePanel>
    </div>
</div>

</asp:Content>

